<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户添加页面</title>
</head>
<body>
	<form action="${pageContext.request.contextPath }/user/add.action"
		method="post" enctype="multipart/form-data">
		<table border="1" align="center">
			<tr align="center">
				<td align="center" colspan="2"><select name="d_id">
						<c:forEach var="dept" items="${ depts }">
							<option value="${ dept.d_id }">${ dept.d_name }</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr align="center">
				<td>姓名:</td>
				<td><input type="text" name="u_name"></td>
			</tr>
			<tr align="center">
				<td>年龄:</td>
				<td><input type="text" name="u_age"></td>
			</tr>
			<tr align="center">
				<td>电话:</td>
				<td><input type="text" name="u_tel"></td>
			</tr>
			<tr align="center">
				<td>头像:</td>
				<td><input type="file" name="photo"></td>
			</tr>
			<tr align="center">
				<td colspan="2" align="center"><input type="submit" value="添加"><a
					href="${pageContext.request.contextPath }/user/find.action"><input
						type="button" value="返回"></a></td>
			</tr>
		</table>
	</form>
</body>
</html>